//
//  ImageNewsHeader.m
//  Mtime
//
//  Created by Mac on 15/8/10.
//  Copyright (c) 2015年 wxk. All rights reserved.
//

#import "ImageNewsHeader.h"

@implementation ImageNewsHeader

- (void)awakeFromNib {

    [super awakeFromNib];
    
    [_search setBackgroundImage:[[UIImage imageNamed:@"img_btn_green_half_press.9"] stretchableImageWithLeftCapWidth:5 topCapHeight:5] forState:UIControlStateNormal];
    
    [_buy setBackgroundImage:[[UIImage imageNamed:@"img_btn_orange_half_press.9"] stretchableImageWithLeftCapWidth:5 topCapHeight:5] forState:UIControlStateNormal];

}

- (void)setDataDic:(NSDictionary *)dataDic {


    _dataDic = dataDic;
    
    [_imageV setImageWithURL:[NSURL URLWithString:[dataDic objectForKey:@"image"]]];
    
    _rating.text = [NSString stringWithFormat:@"%@",[dataDic objectForKey:@"rating"]];
    
    _type.text = @"类型：动作／冒险／科幻";
    
    _timeLong.text = @"时长：132分钟";
    
    _time.text = [dataDic objectForKey:@"releaseDate"];

    
    

}



@end
